home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / guvenlik / syslinux-3.07.exe / menu / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-14  |  1011 b   |  37 lines

  1. /* -*- c -*- ------------------------------------------------------------- *
  2.  *   
  3.  *   Copyright 2004 Murali Krishnan Ganapathy - All Rights Reserved
  4.  *
  5.  *   This program is free software; you can redistribute it and/or modify
  6.  *   it under the terms of the GNU General Public License as published by
  7.  *   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
  8.  *   Boston MA 02111-1307, USA; either version 2 of the License, or
  9.  *   (at your option) any later version; incorporated herein by reference.
  10.  *
  11.  * ----------------------------------------------------------------------- */
  12.  
  13. #ifndef NULL
  14. #define NULL ((void *) 0)
  15. #endif
  16.  
  17. #include "menu.h"
  18. #include "biosio.h"
  19. #include "string.h"
  20. #include "syslinux.h"
  21. #include "heap.h"
  22.  
  23. int syslinux;
  24.  
  25. int _cstart(char *cmdline)
  26. {
  27.   int rv;
  28.  
  29.   syslinux = issyslinux();      /* Find if syslinux is running */
  30.   if (syslinux) gototxtmode();  /* (else assume we are running in DOS) */
  31.  
  32.   rv = menumain(cmdline);    /* Run the actual menu system */
  33.  
  34.   return rv;
  35. }
  36.  
  37.